package com.example.demo1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/add")
    public String addUser(String name) {
        // ...
        return "add success ->" + name;
    }

    @RequestMapping("/del")
    public String delUser() {
        // ...
        return "delete success";
    }
}
